package com.cnhis.cloudhealth.clinical.hosnurse.hospatientouthospital.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;
@Repository
public class HosPatientOutHospitalDao extends BaseDao{
    public List outHospitalCase()throws Exception{
    	return queryForList("HosPatientOutHospital.outHospitalCase", null);
    }
    public List outHospitalTreatment(int lCAM02)throws Exception{
    	return queryForList("HosPatientOutHospital.outHospitalTreatment", lCAM02);
    }
    public List outHospitalWay()throws Exception{
    	return queryForList("HosPatientOutHospital.outHospitalWay", null);
    }
    public Map param(Map map)throws Exception{
    	return (Map) queryForExtObject("HosPatientOutHospital.param", map);
    }
    public int checkPatientState(Map map)throws Exception{
    	return (int) queryForExtObject("HosPatientOutHospital.checkPatientState", map);
    }
    public int checkPatientPathWay(Map map)throws Exception{
    	return (int) queryForExtObject("HosPatientOutHospital.checkPatientPathWay", map);
    }
    public int checkdate(Map map)throws Exception{
    	return (int) queryForExtObject("HosPatientOutHospital.checkdate", map);
    }
    public List getVAP1(Map map)throws Exception{
    	return queryForList("HosPatientOutHospital.getVAP1", map);
    }
    public void updateVCF1(Map map)throws Exception{
    	update("HosPatientOutHospital.updateVCF1", map);
    }
    public void updateVAE1_VAA1_BCQ1(Map map)throws Exception{
    	update("HosPatientOutHospital.updateVAE1_VAA1_BCQ1", map);
    }
    public void updateVAO2(Map map)throws Exception{
    	update("HosPatientOutHospital.updateVAO2", map);
    }
    public void updateVBO1(Map map)throws Exception{
    	update("HosPatientOutHospital.updateVBO1", map);
    }
    public void updateVBP1_BEO1(Map map)throws Exception{
    	update("HosPatientOutHospital.updateVBP1_BEO1", map);
    }
    public Page outHospitalTreatment1(int currPage,int pageSize)throws Exception{
    	return queryForPage("HosPatientOutHospital.outHospitalTreatment1",null, currPage, pageSize);
    }
	public List chineseMedicineTreatment(int lCAM02)throws Exception{
		return queryForList("HosPatientOutHospital.chineseMedicineTreatment", lCAM02);
	}
	
	public Page chineseMedicineTreatment1(int currPage,int pageSize)throws Exception{
		return queryForPage("HosPatientOutHospital.chineseMedicineTreatment1",null, currPage, pageSize);
	}
	public List getTmp(Map map)throws Exception{
		return queryForList("HosPatientOutHospital.getTmp", map);
	}
	
	
	/////////////////////////////
	public List getPathXML(Map map)throws Exception{
		return queryForList("HosPatientOutHospital.getPathXML", map);
	}
}
